package com.candy.bean;

import org.springframework.stereotype.Component;

@Component
public class Student {
//    属性
    private String stuName;
    private Integer stuAge;


//   方法

    public void doEat(){
        System.out.println("吃饭");
    }

    public void doStudy(){
        System.out.println("学习");
    }

    public void doPlayGame(){
        System.out.println("打游戏");
    }


    public String getStuName() {
        return stuName;
    }

    public void setStuName(String stuName) {
        this.stuName = stuName;
    }

    public Integer getStuAge() {
        return stuAge;
    }

    public void setStuAge(Integer stuAge) {
        this.stuAge = stuAge;
    }
}
